package com.educate.service;

import com.educate.pojo.Response;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 信息回复业务层
 * @author Xiongyu
 */
public interface ResponseService {

    /**
     * 添加问题回复
     * @param response
     * @return
     */
   long insertResponse(Response response);


    /**
     * 删除问题回复
     * @param responseId
     * @return
     */
    boolean deleteResponse(long responseId);

    /**
     * 通过问题id 查询问题回复集合
     * @param problemId
     * @return
     */
    List<Response> queryResponseByProblemId(long problemId);
}
